package com.aitoedu.server.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum ModuleEnum {
    SMART_QA(1,"智慧问答"),
    DIFF_POINT(2,"难点定位");
    private int moduleNumber;
    private String moduleName;
    public static ModuleEnum valueOfNum(int m){
        ModuleEnum[] moduleEnums = ModuleEnum.values();
        for(ModuleEnum moduleEnum : moduleEnums){
            if(moduleEnum.getModuleNumber()==m) return moduleEnum;
        }
        return null;
    }
}
